package com.adv.crm.dao;

import com.adv.crm.beans.CustomerBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 16978 on 2016/6/18.
 */
@Repository
public interface CustomerDao {

    public Integer insertCustomer(CustomerBean customerBean);

    public List<CustomerBean> getCustomersByPage(@Param("offset") Integer offset, @Param("pageSize") Integer pageSize);

    public List<CustomerBean> getAllCustomer();

    public CustomerBean getCustomerById(@Param("id") Integer id);

    public Integer getCustomerCount();

    public Integer deleteCustomerById(@Param("id") Integer id);

    public Integer updateCustomer(CustomerBean customerBean);

}
